package cc.lj.internal.api.merchant.api.fallback;

import cc.lj.internal.api.merchant.api.PropertyResourcesFeignService;
import cc.lj.internal.api.merchant.dto.PropertyResourcesApiDTO;
import cc.lj.internal.core.http.HttpResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 展位熔断处理类
 * @author liangxifeng
 * @date 2021-12-31
 */
@Component
public class PropertyResourcesFeignFallBackService implements PropertyResourcesFeignService {
    @Override
    public HttpResult<List<PropertyResourcesApiDTO>> getRentingResourceListByArea(Integer relationId) {
        HttpResult<List<PropertyResourcesApiDTO>>ret = new HttpResult<>(HttpResult.SERVICE_FUSING.getCode(), HttpResult.SERVICE_FUSING.getMessage());
        ret.setData(null);
        return ret;
    }
}
